<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>健康监测</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .container {
            padding: 20px;
            background: linear-gradient(to bottom, 
                #fffff0 0%, 
                #fff7dc 25%, 
                #ffd08e 50%, 
                #ffe9c1 75%, 
                #fffaf4 100%);
            min-height: 100vh;
        }

        /* 顶部个人信息 */
        .header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .avatar-box {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #f0f0f0;
            overflow: hidden;
            border: 1px solid #e0e0e0;
        }

        .avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .username {
            font-size: 20px;
            font-weight: bold;
            margin-left: 15px;
        }

        /* 健康评分卡片 */
        .health-card {
            position: relative;
            display: flex;
            background: linear-gradient(to right, #ffbb66, #ffa64d);
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 10px;
            box-shadow: 2px 2px 10px 2px rgba(148, 4, 0, 0.5);
        }

        .score-area {
            margin-right: 5px;
        }

        .score-circle {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3);
        }

        .score-number {
            font-size: 36px;
            font-weight: bold;
            color: #333;
            line-height: 1;
        }

        .score-text {
            font-size: 12px;
            color: #666;
        }

        .score-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin-bottom: -30px;
        }

        .score-tip {
            color: #333;
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: -20px;
            font-weight: bold;
        }

        .mascot {
            width: 100px;
            height: 100px;
            align-self: flex-end;
        }

        .sound-icon {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 24px;
            height: 24px;
        }

        .monitor-title {
            font-size: 18px;
            margin: 8px;
        }

        /* 血糖卡片 */
        .glucose-card {
            background-color: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 2px 2px 2px 2px rgba(255, 170, 0, 0.2);
            margin-bottom: 25px;
        }

        .glucose-container {
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            height: 120px;
        }

        .glucose-left {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            width: 35%;
        }

        .glucose-status {
            font-size: 20px;
            font-weight: bold;
            color: #4caf50;
            margin-top: 8px;
        }

        .glucose-value {
            font-size: 15px;
            color: #333;
            margin-top: 20px;
            font-weight: bold;
        }

        .glucose-chart {
            width: 90%;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .chart-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* 血压卡片 */
        .indicator-card {
            background-color: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 2px 2px 2px 2px rgba(255, 170, 0, 0.2);
            margin-bottom: 15px;
        }

        .indicator-container {
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            height: 120px;
        }

        .indicator-left {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            width: 35%;
        }

        .indicator-header {
            display: flex;
            align-items: center;
        }

        .indicator-name {
            font-size: 20px;
            font-weight: bold;
            color: #000;
            margin-right: 10px;
        }

        .indicator-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .indicator-icon img {
            width: 35px;
            height: 35px;
        }

        .indicator-status {
            font-size: 20px;
            font-weight: bold;
            margin-top: 45px;
        }

        /* 血压详情 */
        .bp-detail {
            width: 60%;
            display: flex;
            flex-direction: column;
        }

        .bp-tabs {
            display: flex;
            border-radius: 30px;
            overflow: hidden;
            background-color: #f5f5f5;
            height: 30px;
            margin-bottom: 10px;
        }

        .bp-tab {
            flex: 1;
            text-align: center;
            line-height: 30px;
            font-size: 14px;
            color: #999;
            cursor: pointer;
        }

        .bp-tab.active {
            background-color: #f89855;
            color: white;
            font-weight: bold;
        }

        .bp-measuring {
            font-size: 12px;
            color: #999;
            text-align: center;
            margin-bottom: 5px;
            position: relative;
        }

        .bp-measuring::before,
        .bp-measuring::after {
            content: '';
            position: absolute;
            top: 50%;
            height: 1px;
            width: 25%;
            background-color: #ffaa00;
        }

        .bp-measuring::before {
            left: 0;
        }

        .bp-measuring::after {
            right: 0;
        }

        .bp-values {
            display: flex;
            justify-content: space-between;
        }

        .bp-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .bp-label {
            font-size: 13px;
            color: #666;
            margin-bottom: 2px;
            font-weight: bold;
        }

        .bp-value-box {
            display: flex;
            align-items: flex-end;
        }

        .bp-value {
            font-size: 23px;
            font-weight: bold;
            color: #333;
        }

        .bp-unit {
            font-size: 10px;
            color: #999;
            margin-left: 2px;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .bp-range {
            font-size: 12px;
            color: #999;
        }

        /* 心率卡片 */
        .monitor-card {
            background-color: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 2px 2px 2px 2px rgba(255, 170, 0, 0.2);
            margin-bottom: 15px;
        }

        .normal {
            color: #4caf50;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 顶部个人信息 -->
        <div class="header">
            <div class="avatar-box">
                <img class="avatar" src="./image/我的图标.png" alt="头像">
            </div>
            <span class="username">我的</span>
        </div>

        <!-- 健康评分卡片 -->
        <div class="health-card">
            <div class="score-area">
                <div class="score-circle">
                    <span class="score-number">71</span>
                    <span class="score-text">综合分数</span>
                </div>
            </div>
            <div class="score-info">
                <img class="sound-icon" src="./image/喇叭.png" alt="提示">
                <span class="score-tip">基于您今日健康数据表示，各项指标正常！请继续保持哦~</span>
                <img class="mascot" src="./image/分数小狗.png" alt="吉祥物">
            </div>
        </div>

        <div class="monitor-title">健康监测</div>

        <!-- 血糖卡片 -->
        <div class="glucose-card">
            <div class="glucose-container">
                <div class="glucose-left">
                    <div class="indicator-header">
                        <span class="indicator-name">血糖</span>
                        <div class="indicator-icon">
                            <img src="./image/血糖图标.png" alt="血糖">
                        </div>
                    </div>
                    <span class="glucose-status">正常</span>
                    <span class="glucose-value">6.1mmol/L</span>
                </div>
                <div class="glucose-chart">
                    <img class="chart-img" src="./image/血糖统计图.png" alt="统计图">
                </div>
            </div>
        </div>

        <!-- 血压卡片 -->
        <div class="indicator-card">
            <div class="indicator-container">
                <div class="indicator-left">
                    <div class="indicator-header">
                        <span class="indicator-name">血压</span>
                        <div class="indicator-icon">
                            <img src="./image/血压.png" alt="血压">
                        </div>
                    </div>
                    <span class="indicator-status normal">正常</span>
                </div>
                <div class="bp-detail">
                    <div class="bp-tabs" id="bpTabs">
                        <span class="bp-tab" onclick="switchBpTab(0)">偏低</span>
                        <span class="bp-tab active" onclick="switchBpTab(1)">正常</span>
                        <span class="bp-tab" onclick="switchBpTab(2)">偏高</span>
                    </div>
                    <span class="bp-measuring">预测血压值</span>
                    <div class="bp-values">
                        <div class="bp-item">
                            <span class="bp-label">收缩压</span>
                            <div class="bp-value-box">
                                <span class="bp-value">119</span>
                                <span class="bp-unit">mmHg</span>
                            </div>
                            <span class="bp-range">正常值: 90-139</span>
                        </div>
                        <div class="bp-item">
                            <span class="bp-label">舒张压</span>
                            <div class="bp-value-box">
                                <span class="bp-value">80</span>
                                <span class="bp-unit">mmHg</span>
                            </div>
                            <span class="bp-range">正常值: 60-89</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 心率卡片 -->
        <div class="monitor-card">
            <div class="glucose-container">
                <div class="glucose-left">
                    <div class="indicator-header">
                        <span class="indicator-name">心率</span>
                        <div class="indicator-icon">
                            <img src="./image/心率.png" alt="心率">
                        </div>
                    </div>
                    <span class="glucose-status">正常</span>
                    <span class="glucose-value">59次/分钟</span>
                </div>
                <div class="glucose-chart">
                    <img class="chart-img" src="./image/心率统计图.png" alt="统计图">
                </div>
            </div>
        </div>
    </div>

    <script>
        // 血压标签切换功能
        function switchBpTab(index) {
            const tabs = document.querySelectorAll('.bp-tab');
            tabs.forEach((tab, i) => {
                tab.classList.toggle('active', i === index);
            });
        }
    </script>
</body>
</html>